<?php

namespace Common\Models\Videos;

use Phalcon\Mvc\Model;
use Phalcon\Mvc\Model\Validator\Uniqueness;

class VideoGroupDescription extends Model
{
    protected $id;

    protected $name;

    protected $total_episode;

    protected $status;

    public function getSource()
    {
        return 'video_group';
    }

    public function initialize()
    {
        $this->setSource('video_group');
    }

    /**
     * @return User
     */
    public static function findFirstById($parameters = array())
    {
        return parent::findFirstById($parameters);
    }

    /**
     * Validate that emails are unique across users
     */
    public function validation()
    {
        /*
        $this->validate(new Uniqueness(array(
            "field" => "email",
            "message" => "The email is already registered"
        )));

        return $this->validationHasFailed() != true;*/
    }

    /**
     * @param mixed $name
     */
    public function setName($name)
    {
        $this->name = $name;
    }

    /**
     * @return mixed
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * @param mixed $id
     */
    public function setId($id)
    {
        $this->id = $id;
    }

    /**
     * @return mixed
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * @param mixed $status
     */
    public function setStatus($status)
    {
        $this->status = $status;
    }

    /**
     * @return mixed
     */
    public function getStatus()
    {
        return $this->status;
    }

    /**
     * @param mixed $total_episode
     */
    public function setTotalEpisode($total_episode)
    {
        $this->total_episode = $total_episode;
    }

    /**
     * @return mixed
     */
    public function getTotalEpisode()
    {
        return $this->total_episode;
    }



}
